package com.dao;

import com.pojo.Export_info;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

public interface Export_infoDao {

    //获取所有出库列表
    //public abstract List<Export_info> findAllExportList();

    //分页获取单页出库列表
    public abstract List<Export_info> findPageExportList(int pageIndex, int pageSize, String search);

    //获取出库总数
    public abstract int findAllExportCount(String search);

    //获取单个出库、编辑
    public abstract Export_info findExportById(int id);

    //编辑更新出库
    public abstract int updateExport(Export_info exportInfo);

    //新增出库
    public abstract int addExport(Export_info exportInfo);

    //删除单个出库
    public abstract int delExport(int id);

    //批量删除出库
    public abstract int delExports(String ids);

    //公共对象设置属性
    public abstract void setExportAttr(Export_info exportInfo, ResultSet resultSet) throws SQLException;

    //根据药品id查询该药品出库总数
    int queryExportQuantityByMedicineId(int id);
}
